<include file="Public/header"/>
<div class="wrapper m-t">
    <div class="ibox float-e-margins">
        <div class="ibox-title">
            <a class="h3 font-bold">会员中心【场景列表】</a><span>已生成的场景只能删除本地场景</span>
            <a data-toggle="modal" data-target="#fenzu" class="btn btn-sm btn-primary m-l pull-right">新增场景</a>
        </div>
        <div class="ibox-content">

            <table class="table table-striped b-t b-light text-sm table-bordered">
                <thead>
                <tr>
                    <th width="10 "><input type="checkbox"></th>
                    <th>ID</th>
                    <th>场景名称</th>
                    <th>场景值</th>
                    <th>二维码</th>
                    <th>URL</th>
                    <th>类型</th>
                    <th>操作</th>
                </tr>
                </thead>
                <tbody>
                <volist name="_list" id="vo" key="k">
                    <tr>
                        <td><input type="checkbox" name="post[]" value="{$vo.sid}"></td>
                        <td>{$vo.sid}</td>
                        <td>{$vo.secenname}</td>
                        <td>{$vo.keyword}</td>
                        <td><a target="_blank" href="{$vo.codeimg}">二维码地址</a></td>
                        <td>{$vo.url}</td>
                        <td>
                            <if condition="$vo.type eq 0">
                            临时<elseif condition="$vo.type eq 1"/>永久
                                <elseif condition="$vo.type eq 2"/>永久带参数
                            </if>
                        </td>
                        <td>
                            <a href= "__URL__/delscene/sid/{$vo.sid}" class="text-info ajax-get confirm">删除</a>
                        </td>
                    </tr>
                </volist>
                </tbody>
            </table>
            <div>{$_page}</div>
        </div>
    </div>
</div>

<!--新增场景-->
<div class="modal inmodal" id="fenzu" tabindex="-1" role="dialog" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content animated bounceInRight">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal">
                    <span onclick="$('#fzid').val('')" aria-hidden="true">&times;</span>
                    <span class="sr-only">关闭</span>
                </button>
                <h3 class="font-bold text-info"><i class="fa fa-edit"></i> 编辑分组</h3>
            </div>
            <form class="form-horizontal-f" action="{:U('')}" method="post">
                <div class="modal-body">
                    <div class="form-group">
                        <label class="col-sm-3 control-label">场景名称：</label>
                        <div class="col-sm-8 m-b">
                            <input type="text" placeholder="输入场景名称" name="secenname" class="form-control">
                        </div>
                        <div class="clearfix"></div>
                        <label class="col-sm-3 control-label">场景值：</label>
                        <div class="col-sm-8 m-b">
                            <input type="text" name="keyword" placeholder="分组场景：#分组id，普通场景为关键词回复" class="form-control">
                        </div>
                        <div class="clearfix"></div>
                        <label class="col-sm-3 control-label">场景类型：</label>
                        <div class="col-sm-8">
                            <input name="type" value="0" checked type="radio"/>临时&nbsp;&nbsp;&nbsp;
                            <input name="type" value="1" type="radio"/>永久&nbsp;&nbsp;&nbsp;
                            <input name="type" value="2" type="radio"/>永久带参数
                        </div>
                    </div>
                    <div class="clearfix"></div>

                </div>
                <div class="modal-footer">
                    <button type="submit" target-form="form-horizontal-f" class=" btn btn-info col-lg-2 col-lg-push-5" >提交</button>
                </div>
            </form>
        </div>
    </div>
</div>

<include file="Public/footer"/>

























